﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<title>feed</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" href="../../../javascript/dijit/themes/claro/claro.css">
	<link rel="stylesheet" href="../styles/FeedPage.css" />

	<script type="text/javascript" src="../../../javascript/include.aspx?classes=/dojo.js"
		data-dojo-config="isDebug: false, parseOnLoad: false, baseUrl:'../../../javascript/dojo'"></script>
	<script type="text/javascript" src="../javascript/FeedLoader.js"></script>
	<script type="text/javascript" src="../javascript/MessageStructure.js"></script>
	<script type="text/javascript" src="../javascript/DojoWrapper.js"></script>

	<script type="text/javascript" src="../javascript/Utils.js"></script>
</head>
<body
	onload="onBodyLoadEventHandler()"
	onmousemove="SSVC.FeedEventHandler.onBodyMouseMoveEventHandler()"
	onmouseup="SSVC.FeedEventHandler.onBodyMouseUpEventHanlder()"
	onmousedown="SSVC.FeedEventHandler.onBodyMouseDownEventHandler()"
	onselectstart="return SSVC.FeedEventHandler.onBodySelectStartEventHandler()" style="overflow: hidden;">

	<script type="text/javascript">
		function onBodyLoadEventHandler()
		{
			SSVC.ArasHelper.startProgress();
			try
			{
				top.aras.showStatusMessage("status", "", "../images/Progress.gif");
				SSVC.Wrap.Dojo.Require(["dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/layout/SplitContainer"], SSVC.Wrap.Dojo.Hitch(this, function(BorderContainer, ContentPane, SplitContainer)
				{
					var appLayout = new BorderContainer(
					{
						"style": "width:100%; height:100%;",
						design: "headline"
					}, "appLayout").placeAt(document.body);

					var DiscussionThread = new ContentPane({
						region: "center",
						id: "DiscussionThread",
						"class": "DiscussionThread"
					});
					appLayout.addChild(DiscussionThread);
					appLayout.addChild(
						new ContentPane({
							region: "right",
							id: "SubscriptionControls",
							"class": "SubscriptionControls",
							splitter: true
						})
					);

					this.FeedObj = new SSVC.UI.Feed.MyFeed();
					this.FeedObj.placeAt(DiscussionThread);

					// start up and do layout
					appLayout.startup();
					this.FeedObj.load();
				}));
			}
			finally
			{
				SSVC.ArasHelper.endProgress();
			}
		}
	</script>
</body>
</html>
